﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Kwd.Summary.Models;

namespace Kwd.Summary.ViewModels
{
  public class SummaryTypePartSettingsViewModel
  {
    public SummaryTypePartSettingsViewModel()
    {
      StrategyOptions = new List<SelectListItem>();
    }

    public SummaryTypePartSettingsViewModel(SummaryTypePartSettings partTypeSettings)
      :this()
    {
      DefaultStrategy = partTypeSettings.DefaultStrategy;
      Flavor = partTypeSettings.Flavor;
    }
 
    public string DefaultStrategy { get; set; }

    [Required]
    public string Flavor { get; set; }
 
    public IEnumerable<SelectListItem> StrategyOptions { get; set; }
  }
}